'use strict';

module.exports = app => {
    const { STRING, INTEGER, DATE, DATEONLY } = app.Sequelize;

    const Follow = app.model.define('team_follow', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        project_id: INTEGER,
        user_id: INTEGER,
        user_role: INTEGER,
        level: INTEGER,
        content: STRING,
        follow_date: DATEONLY,
        create_time: DATE,
        update_time: DATE,

    }, {
        paranoid: false
    });

    return Follow;
};